package com.myalibaba;

import com.myalibaba.util.EnvironmentUtil;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
//所在的包及其所有子包会被扫描
@SpringBootApplication
@EnableDiscoveryClient
public class AlibabaApp {

	public static void main(String[] args) {
		SpringApplication.run(AlibabaApp.class, args);
	}

	@Bean
	public CommandLineRunner commandLineRunner(ApplicationContext ctx) {
		return args -> {
			System.out.println("项目启动成功!");
		};
	}

}
